<template>
 <div>
    <div class="pic-box" v-for="(item, index) in state.count" :style="setStyle()">
        {{index}}
    </div>
 </div>
</template>

<script setup>
import { reactive, ref } from 'vue';
const state ={
    count: 50
}
const setStyle = () => {
    let random = Math.random() * 1.5
    return {
        transform: `scale(${random})`,
        opacity: random,
    }
}

const random = () => {
    return Math.random() * 1.5
}

</script>

<style scoped lang='scss'>
.pic-box{
    background-color: #ccc;
    height: 100px;
    width: 100px;
    text-align: center;
    line-height: 100px;
}
</style>